<?php	namespace Common\Model;
use Hdphp\Model\Model;
class Indent extends Model
{
	protected $table = 'indent';
	public function store($Data)
	{
		$iid = $this->add($Data);
		$Orderfrom = new \Common\Model\Orderfrom;
		if(isset($_SESSION['shop'])){
			$sessdata[] = $_SESSION['shop'];
			$Orderfrom -> store($sessdata,$iid);
		}else{
			$sessdata = $_SESSION['cart']['goods'];
			$Orderfrom -> store($sessdata,$iid);
		}
		
		
		return true;
	}
}
